<template>
	<view>
		<view class="currContent">
			<view class="welcomeTxt">欢迎致电客服热线</view>
			<a class="phoneNum" :href='phones'>{{kfTel}}</a>
			<view>服务时间：08:00~23:00 (周一至周五)</view>
		</view>
		<view class="currBtnGroup">
			<view class="btnItem cancel" @tap.stop="cancel">取消</view>
			<view class="btnItem call" @tap="sureCall">拨打</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"kf-tel",
		props:{
			phones:String,
			kfTel:String
		},
		data() {
			return {
			};
		},
		methods:{
			cancel(){
				this.$emit('cancel');
			},
			sureCall(){
				this.$emit('phoneCall');
			}
		}
	}
</script>

<style lang="scss" scoped>
	.currBtnGroup{
		height: 80rpx;
		display: flex;
		margin-bottom: -15rpx;
		.btnItem{
			width: 50%;
			line-height: 80rpx;
			font-size: $font-size30;
			text-align: center;
			&.cancel{
				color: $pss-color-primary_1;
				background:#fdf1de;
			}
			&.call{
				color: #fff;
				background: $pss-color-primary_1;
			}
		}
	}
	.currContent{
		padding: 20rpx;
		text-align: center;
		color: $pss-text-color8;
		font-size: $font-size26;
		margin-bottom: 20rpx;
		.welcomeTxt{
			color: $pss-text-color3;
			font-size: $font-size30;
		}
		.phoneNum{
			font-size: 60rpx;
			color: $pss-color-primary_1; 
			margin: 10rpx 0;
			text-decoration: none;
		}
	}
</style>
